HipTileset

Undocumented in source.

Constructors

this
this(uint tileCount)
Undocumented in source.

Members

Functions

columns
uint columns()
Undocumented in source. Be warned that the author may not have intended to support it.
firstGid
uint firstGid()
Undocumented in source. Be warned that the author may not have intended to support it.
isReady
bool isReady()
Undocumented in source. Be warned that the author may not have intended to support it.
loadImage
IImage loadImage(void delegate(IImage self) onSuccess, void delegate() onFailure)
Undocumented in source. Be warned that the author may not have intended to support it.
loadTexture
bool loadTexture()
Undocumented in source. Be warned that the author may not have intended to support it.
margin
int margin()
Undocumented in source. Be warned that the author may not have intended to support it.
name
string name()
Undocumented in source. Be warned that the author may not have intended to support it.
onDispose
void onDispose()
Undocumented in source. Be warned that the author may not have intended to support it.
onFinishLoading
void onFinishLoading()
Undocumented in source. Be warned that the author may not have intended to support it.
path
string path()
Undocumented in source. Be warned that the author may not have intended to support it.
setTexture
void setTexture(IHipTexture texture)
Undocumented in source. Be warned that the author may not have intended to support it.
spacing
int spacing()
Undocumented in source. Be warned that the author may not have intended to support it.
texture
IHipTexture texture()
Undocumented in source. Be warned that the author may not have intended to support it.
textureHeight
uint textureHeight()
Undocumented in source. Be warned that the author may not have intended to support it.
texturePath
string texturePath()
Undocumented in source. Be warned that the author may not have intended to support it.
textureWidth
uint textureWidth()
Undocumented in source. Be warned that the author may not have intended to support it.
tileHeight
uint tileHeight()
Undocumented in source. Be warned that the author may not have intended to support it.
tileWidth
uint tileWidth()
Undocumented in source. Be warned that the author may not have intended to support it.
tiles
Tile[] tiles()
Undocumented in source. Be warned that the author may not have intended to support it.

Static functions

fromAtlas
IHipTileset fromAtlas(HipTextureAtlas atlas)

Untested. D's Associative Arrays aren't deterministic, this is subject to bug.

fromSpritesheet
IHipTileset fromSpritesheet(Array2D_GC!IHipTextureRegion regions)
Undocumented in source. Be warned that the author may not have intended to support it.
read
HipTileset read(string path, void delegate(HipTileset self) onSuccess, void delegate() onError, uint firstGid)
Undocumented in source. Be warned that the author may not have intended to support it.
readFromMemory
HipTileset readFromMemory(string path, string data, void delegate(HipTileset) onSuccess, void delegate() onError, uint firstGid)
Undocumented in source. Be warned that the author may not have intended to support it.
readJSON
HipTileset readJSON(string path, uint firstGid, void delegate(HipTileset self) onSuccess, void delegate() onError)
Undocumented in source. Be warned that the author may not have intended to support it.
readJSON
HipTileset readJSON(string path, uint firstGid, JSONValue t, void delegate(HipTileset self) onSuccess, void delegate() onError)
Undocumented in source. Be warned that the author may not have intended to support it.

Variables

_columns
uint _columns;
Undocumented in source.
_firstGid
uint _firstGid;

Means where the tileset id starts

_margin
int _margin;
Undocumented in source.
_path
string _path;

Only available when loaded via .tsx

_spacing
int _spacing;
Undocumented in source.
_texture
IHipTexture _texture;
Undocumented in source.
_textureHeight
uint _textureHeight;

"imageheight" in tiled

_texturePath
string _texturePath;

"image" in tiled

_textureWidth
uint _textureWidth;

"imagewidth" in tiled

_tileHeight
uint _tileHeight;
Undocumented in source.
_tileWidth
uint _tileWidth;
Undocumented in source.
_tiles
Tile[] _tiles;
Undocumented in source.
textureImage
IImage textureImage;
Undocumented in source.

Meta